]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
cldr2json: Don't use deprecated method
authorFlorian Müllner <fmuellner@gnome.org>
Fri, 27 Mar 2020 15:51:47 +0000 (16:51 +0100)
committerFlorian Müllner <florian.muellner@gmail.com>
Fri, 27 Mar 2020 16:44:27 +0000 (16:44 +0000)
Replace the deprecated 'warn()' with 'warning()' to shut up
a runtime warning.

https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1136

data/cldr2json/cldr2json.py

index 360030b788897c2f16e3a6b7e33aa1714ea280e7..7d6d71792d8aa813780fd95ec314f6694b81387f 100755 (executable)
@@ -161,7 +161,7 @@ def convert_file(source_file, destination_path):
     try:
         xkb_name = locale_to_xkb(root["locale"], root["name"])
     except KeyError as e:
-        logging.warn(e)
+        logging.warning(e)
         return False
     destination_file = os.path.join(destination_path, xkb_name + ".json")